﻿using System.Configuration;

namespace FileDistributor.Configuration
{
    public class PickupLocationElement : ConfigurationElement
    {
        public PickupLocationElement()
        {
            ElementName = "pickupLocation";
        }

        public string ElementName { get; private set; }

        [ConfigurationProperty("name", IsRequired = true, IsKey = true)]
        public string Name
        {
            get { return (string)this["name"]; }
            set { this["name"] = value; }
        }

        [ConfigurationProperty("localPath", IsRequired = true)]
        public string LocalPath 
        {
            get { return (string)this["localPath"]; }
            set { this["localPath"] = value; } 
        }

        [ConfigurationProperty("ftpServerConnection", IsRequired = true)]
        public string FtpServerConnection
        {
            get { return (string)this["ftpServerConnection"]; }
            set { this["ftpServerConnection"] = value; }
        }

    }


}
